#ifndef EDITLABEL_H
#define EDITLABEL_H

#include <QLabel>

class QLineEdit;
class EditLabel : public QLabel
{
    Q_OBJECT
public:
    explicit EditLabel(QWidget *parent = 0);
    ~EditLabel();

protected:
    virtual void mouseDoubleClickEvent(QMouseEvent* e);

private slots:
    void onFinishEditing();

private:
    void layoutEditor();

private:
    QLineEdit* m_editor;
};

#endif // EDITLABEL_H
